package com.ruoyi.yuyuan.Controller;

import com.ruoyi.yuyuan.DTO.Result;
import com.ruoyi.yuyuan.Service.INoticeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: kestrel
 * @Version:1.0
 * @Date: 2024/6/21
 */
@RestController
@RequestMapping("/notice")
public class NoticeController {

    @Autowired
    private INoticeService noticeService;

    //获取通知(分页)
    @GetMapping("/get/{startId}")
    public Result getPageComment(@PathVariable Long startId){
        return noticeService.getPageNotices(startId);
    }
}
